home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / unix_b6y.mak < prev    next >
Encoding:
Makefile  |  1991-01-04  |  24.0 KB  |  739 lines

  1. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Choose generic configuration options.
  35.  
  36. # -DDEBUG
  37. #    includes debugging features (-Z switch) in the code.
  38. #      Code runs substantially slower even if no debugging switches
  39. #      are set.
  40. # -DNOPRIVATE
  41. #    makes private (static) procedures and variables public,
  42. #      so they are visible to the debugger and profiler.
  43. #      No execution time or space penalty.
  44.  
  45. GENOPT=
  46.  
  47. # ------ Platform-specific options ------ #
  48.  
  49. # Define the name of the C compiler.
  50.  
  51. CC=gcc
  52.  
  53. # Define the other compilation flags.
  54. # Add -DBSD4_2 for 4.2bsd systems.
  55. # Add -DUSG (GNU convention) or -DSYSV for System V.
  56. # We don't include -ansi, because this gets in the way of the platform-
  57. #   specific stuff that <math.h> typically needs.
  58.  
  59. CFLAGS=-g -O
  60.  
  61. # Define platform flags for ld.
  62. # Most Unix systems accept -X, but some don't.
  63. # Sun OS4.n needs -Bstatic.
  64.  
  65. LDPLAT=-X
  66.  
  67. # Define any extra libraries to link into the executable.
  68. # The default is for X Windows.
  69.  
  70. EXTRALIBS= -lX11
  71.  
  72. # --------------------------- Choice of devices --------------------------- #
  73.  
  74. # Choose the device(s) to include.  See gdevs.mak for details.
  75.  
  76. DEVICES=x11
  77. DEVICE_OBJS=$(x11_)
  78.  
  79. # ---------------------------- End of options --------------------------- #
  80.  
  81. # Define the name of the makefile -- used in dependencies.
  82.  
  83. MAKEFILE=unix-gcc.mak
  84.  
  85. # Define the extensions for the object and executable files.
  86.  
  87. OBJ=o
  88. XE=
  89.  
  90. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  91.  
  92. AK=
  93.  
  94. # Define the directory separator and shell quote string.
  95.  
  96. DS=/
  97. Q=\"
  98.  
  99. # Define the compilation rules.
  100.  
  101. CCFLAGS=$(GENOPT) $(CFLAGS)
  102.  
  103. .c.o:
  104.     $(CC) $(CCFLAGS) -c $*.c
  105.  
  106. CCA=$(CC) $(CCFLAGS) -c
  107. CCNA=$(CCA)
  108. CCINT=$(CCA)
  109.  
  110. # --------------------------- Generic makefile ---------------------------- #
  111.  
  112. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  113. # is generic.  tar_gs concatenates all these together.
  114. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  115. #    Distributed by Free Software Foundation, Inc.
  116. #
  117. # This file is part of Ghostscript.
  118. #
  119. # Ghostscript is distributed in the hope that it will be useful, but
  120. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  121. # to anyone for the consequences of using it or for whether it serves any
  122. # particular purpose or works at all, unless he says so in writing.  Refer
  123. # to the Ghostscript General Public License for full details.
  124. #
  125. # Everyone is granted permission to copy, modify and redistribute
  126. # Ghostscript, but only under the conditions described in the Ghostscript
  127. # General Public License.  A copy of this license is supposed to have been
  128. # given to you along with Ghostscript so you can know your rights and
  129. # responsibilities.  It should be in a file named COPYING.  Among other
  130. # things, the copyright notice and this notice must be preserved on all
  131. # copies.
  132.  
  133. # Generic makefile for Ghostscript.
  134. # The platform-specific makefiles 'include' this file.
  135. # They define the following symbols:
  136. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  137. #        initialization and font files at run time.
  138. #    Q - the string that causes the shell to pass a " to a program
  139. #        (" on MS-DOS, \" on Unix).
  140. #    XE - the extension for executable files (e.g., null or .exe).
  141. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  142. #    CCA - the ANSI C invocation for normal compilation.
  143. #    CCNA - the non-ANSI C invocation for files that on some platforms
  144. #        include in-line assembly code or other non-standard
  145. #        constructs.  Currently this is needed on every file that
  146. #        includes sstorei.h, and a few files that use Turbo C
  147. #        "short pointer" constructs.
  148. #    CCINT - the C invocation for compiling the main interpreter module,
  149. #        normally the same as CCNA: this is needed because the
  150. #        Borland compiler generates *worse* code for this module
  151. #        (but only this module) when optimization (-O) is turned on.
  152. #    AK - if source files must be converted from ANSI to K&R syntax,
  153. #        this is ansi2knr$(XE); if not, it is null.
  154. #    DS - the directory separator (/ or \).
  155. # The platform-specific makefiles must also include rules for creating
  156. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  157. #   and for making arch.h by executing genarch$(XE).  (This
  158. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  159. #   switch slightly differently (Turbo C requires no following space,
  160. #   Unix C requires a following space), and I haven't found a way to capture
  161. #   the difference in a macro; also, Unix requires ./ because . may not be
  162. #   in the search path, whereas MS-DOS always looks in the current
  163. #   directory first.)
  164.  
  165. default: gs$(XE)
  166.  
  167. test: gt$(XE)
  168.  
  169. clean:
  170.     rm -f *.$(OBJ) *.a core gmon.out
  171.     rm -f *.dev gdevs.h gdevs.tl
  172.     rm -f t _temp_* _temp_*.* libc*.tl *.map *.sym
  173.     rm -f ansi2knr$(XE) genarch$(XE) arch.h gs$(XE)
  174.  
  175. # Note: Unix uses malloc.h and memory.h;
  176. # Turbo C uses alloc.h, stdlib.h, and mem.h.
  177. # 4.2bsd uses strings.h; other systems use string.h.
  178. # gcc on VMS doesn't have a math.h.
  179. # We handle this by using local include files called
  180. # malloc_.h, math_.h, memory_.h, and string_.h
  181. # that perform appropriate indirection.
  182.  
  183. # Auxiliary programs
  184.  
  185. arch.h: genarch$(XE)
  186.     .$(DS)genarch
  187.  
  188. # -------------------------------- Library -------------------------------- #
  189.  
  190. GX=$(AK) std.h gx.h
  191. GXERR=$(GX) gserrors.h
  192.  
  193. ###### High-level facilities
  194.  
  195. gschar.$(OBJ): gschar.c $(GXERR) \
  196.   gxfixed.h gxarith.h gxmatrix.h gzdevice.h gxdevmem.h gxfont.h gxchar.h gstype1.h gzpath.h gzcolor.h gzstate.h
  197.  
  198. gscolor.$(OBJ): gscolor.c $(GXERR) \
  199.   gxfixed.h gxmatrix.h gxdevice.h gzstate.h gzcolor.h gzht.h
  200.  
  201. gscoord.$(OBJ): gscoord.c $(GXERR) \
  202.   gxfixed.h gxmatrix.h gzdevice.h gzstate.h gscoord.h
  203.  
  204. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  205.   gxfixed.h gxmatrix.h gxbitmap.h gxdevmem.h gzstate.h gzdevice.h
  206.  
  207. gsfile.$(OBJ): gsfile.c $(GXERR) \
  208.   gsmatrix.h gxdevice.h gxdevmem.h
  209.  
  210. gsfont.$(OBJ): gsfont.c $(GXERR) \
  211.   gxdevice.h gxfixed.h gxmatrix.h gxfont.h gxfdir.h gzstate.h
  212.  
  213. gsimage.$(OBJ): gsimage.c $(GXERR) \
  214.   arch.h gxfixed.h gxarith.h gxmatrix.h gspaint.h gzcolor.h gzdevice.h gzpath.h gzstate.h gximage.h
  215.  
  216. gsim2out.$(OBJ): gsim2out.c $(GXERR) \
  217.   gsstate.h gsmatrix.h gscoord.h gxfixed.h gxtype1.h
  218.  
  219. gsline.$(OBJ): gsline.c $(GXERR) \
  220.   gxfixed.h gxmatrix.h gzstate.h gzline.h
  221.  
  222. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  223.   gxfixed.h gxarith.h gxmatrix.h
  224.  
  225. gsmisc.$(OBJ): gsmisc.c $(GX)
  226.  
  227. gspaint.$(OBJ): gspaint.c $(GX) \
  228.   gxfixed.h gxmatrix.h gspaint.h gzpath.h gzstate.h gzdevice.h gximage.h
  229.  
  230. gspath.$(OBJ): gspath.c $(GXERR) \
  231.   gxfixed.h gxmatrix.h gxpath.h gzstate.h
  232.  
  233. gspath2.$(OBJ): gspath2.c $(GXERR) \
  234.   gspath.h gxfixed.h gxmatrix.h gzstate.h gzpath.h gzdevice.h
  235.  
  236. gsstate.$(OBJ): gsstate.c $(GXERR) \
  237.   gxfixed.h gxmatrix.h gzstate.h gzcolor.h gzdevice.h gzht.h gzline.h gzpath.h
  238.  
  239. gstype1.$(OBJ): gstype1.c $(GXERR) \
  240.   gxarith.h gxfixed.h gxmatrix.h gxchar.h gxdevmem.h gxtype1.h gxfont1.h gzstate.h gzdevice.h gzpath.h
  241.  
  242. ###### Low-level facilities
  243.  
  244. gxcache.$(OBJ): gxcache.c $(GX) \
  245.   gserrors.h gxfixed.h gxmatrix.h gspaint.h gzdevice.h gzcolor.h gxdevmem.h gxfont.h gxfdir.h gxchar.h gzstate.h gzpath.h
  246.  
  247. gxcolor.$(OBJ): gxcolor.c $(GX) \
  248.   gxfixed.h gxmatrix.h gxdevice.h gzcolor.h gzht.h
  249.  
  250. gxdither.$(OBJ): gxdither.c $(GX) \
  251.   gxfixed.h gxmatrix.h gzstate.h gzdevice.h gzcolor.h gzht.h
  252.  
  253. gxdraw.$(OBJ): gxdraw.c $(GX) \
  254.   gxfixed.h gxmatrix.h gxbitmap.h gzcolor.h gzdevice.h gzstate.h
  255.  
  256. gxfill.$(OBJ): gxfill.c $(GXERR) \
  257.   gxfixed.h gxmatrix.h gxdevice.h gzcolor.h gzpath.h gzstate.h
  258.  
  259. gxht.$(OBJ): gxht.c $(GXERR) \
  260.   gxfixed.h gxmatrix.h gxbitmap.h gzstate.h gzcolor.h gzdevice.h gzht.h
  261.  
  262. gxpath.$(OBJ): gxpath.c $(GXERR) \
  263.   gxfixed.h gzpath.h
  264.  
  265. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  266.   gxfixed.h gxarith.h gzpath.h
  267.  
  268. gxstroke.$(OBJ): gxstroke.c $(GXERR) \
  269.   gxfixed.h gxarith.h gxmatrix.h gzstate.h gzcolor.h gzdevice.h gzline.h gzpath.h
  270.  
  271. ###### The "memory" device
  272.  
  273. gdevmem.$(OBJ): gdevmem.c $(AK) \
  274.   gs.h arch.h gxbitmap.h gsmatrix.h gxdevice.h gxdevmem.h
  275.     $(CCNA) gdevmem.c
  276.  
  277. ###### Files dependent on the set of installed devices.
  278. ###### Generating gdevs.h also generates gdevs.tl.
  279.  
  280. gdevs.h: gdevs.mak $(MAKEFILE) makefile
  281.     .$(DS)gsconfig $(DEVICES)
  282.  
  283. gdevs.$(OBJ): gdevs.c $(AK) gdevs.h
  284.  
  285. ###### On Unix, we pre-link all of the library except the back end.
  286. ###### On MS-DOS, we have to do the whole thing at once.
  287.  
  288. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) gsdevice.$(OBJ) \
  289.  gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsim2out.$(OBJ) \
  290.  gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  291.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) gsstate.$(OBJ) gstype1.$(OBJ) \
  292.  gxcache.$(OBJ) gxcolor.$(OBJ) gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  293.  gxht.$(OBJ) gxpath.$(OBJ) gxpath2.$(OBJ) gxstroke.$(OBJ) \
  294.  gdevmem.$(OBJ) gdevs.$(OBJ)
  295.  
  296. # ------------------------------ Interpreter ------------------------------ #
  297.  
  298. ###### Utilities
  299.  
  300. GH=$(AK) ghost.h
  301.  
  302. ialloc.$(OBJ): ialloc.c $(AK) std.h alloc.h
  303.     $(CCNA) ialloc.c
  304.  
  305. idebug.$(OBJ): idebug.c $(GH) name.h
  306.  
  307. idict.$(OBJ): idict.c $(GH) alloc.h errors.h name.h store.h dict.h
  308.  
  309. iinit.$(OBJ): iinit.c $(GH) dict.h oper.h store.h
  310.  
  311. iname.$(OBJ): iname.c $(GH) alloc.h errors.h name.h store.h
  312.  
  313. iscan.$(OBJ): iscan.c $(GH) arch.h alloc.h dict.h errors.h name.h store.h stream.h scanchar.h
  314.  
  315. iutil.$(OBJ): iutil.c $(GH) errors.h alloc.h oper.h store.h gsmatrix.h gxdevice.h gzcolor.h
  316.  
  317. stream.$(OBJ): stream.c $(AK) std.h stream.h scanchar.h gxfixed.h gstype1.h
  318.  
  319. ### Level 2 utilities
  320.  
  321. i2num.$(OBJ): i2num.c $(GH) arch.h errors.h stream.h i2num.h i2btoken.h
  322.  
  323. i2scan.$(OBJ): i2scan.c $(GH) arch.h errors.h alloc.h store.h stream.h i2bseq.h i2btoken.h i2num.h
  324.  
  325. ###### Non-graphics operators
  326.  
  327. OP=$(GH) errors.h oper.h
  328.  
  329. zarith.$(OBJ): zarith.c $(OP) store.h
  330.  
  331. zarray.$(OBJ): zarray.c $(OP) alloc.h store.h sstorei.h
  332.     $(CCNA) zarray.c
  333.  
  334. zcontrol.$(OBJ): zcontrol.c $(OP) estack.h store.h sstorei.h
  335.     $(CCNA) zcontrol.c
  336.  
  337. zdict.$(OBJ): zdict.c $(OP) dict.h store.h
  338.  
  339. zfile.$(OBJ): zfile.c $(OP) alloc.h stream.h store.h gsmatrix.h gxdevice.h gxdevmem.h
  340.  
  341. zgeneric.$(OBJ): zgeneric.c $(OP) dict.h estack.h store.h
  342.  
  343. zmath.$(OBJ): zmath.c $(OP) store.h
  344.  
  345. zmisc.$(OBJ): zmisc.c $(OP) alloc.h dict.h store.h gstype1.h gxfixed.h
  346.  
  347. zpacked.$(OBJ): zpacked.c $(OP) store.h
  348.  
  349. zrelbit.$(OBJ): zrelbit.c $(OP) store.h sstorei.h dict.h
  350.     $(CCNA) zrelbit.c
  351.  
  352. zstack.$(OBJ): zstack.c $(OP) store.h sstorei.h
  353.     $(CCNA) zstack.c
  354.  
  355. zstring.$(OBJ): zstring.c $(OP) alloc.h store.h stream.h
  356.  
  357. ztype.$(OBJ): ztype.c $(OP) dict.h name.h stream.h store.h
  358.  
  359. zvmem.$(OBJ): zvmem.c $(OP) alloc.h state.h store.h gsmatrix.h gsstate.h
  360.  
  361. ### Level 2 non-graphics operators
  362.  
  363. z2bseq.$(OBJ): z2bseq.c $(OP) stream.h name.h i2btoken.h i2bseq.h
  364.  
  365. ###### Graphics operators
  366.  
  367. zchar.$(OBJ): zchar.c $(OP) gxmatrix.h gschar.h gstype1.h gxdevice.h gxfixed.h gxfont.h gxfont1.h gzpath.h gzstate.h alloc.h dict.h font.h estack.h state.h store.h
  368.  
  369. zcolor.$(OBJ): zcolor.c $(OP) alloc.h gsmatrix.h gsstate.h state.h store.h
  370.  
  371. zdevice.$(OBJ): zdevice.c $(OP) alloc.h state.h gsmatrix.h gsstate.h gxdevice.h store.h
  372.  
  373. zfont.$(OBJ): zfont.c $(OP) gsmatrix.h gxdevice.h gxfont.h gxfont1.h alloc.h font.h dict.h name.h state.h store.h
  374.  
  375. zgstate.$(OBJ): zgstate.c $(OP) alloc.h gsmatrix.h gsstate.h state.h store.h
  376.  
  377. zht.$(OBJ): zht.c $(OP) alloc.h estack.h gsmatrix.h gsstate.h state.h store.h
  378.  
  379. zmatrix.$(OBJ): zmatrix.c $(OP) gsmatrix.h state.h gscoord.h store.h
  380.  
  381. zpaint.$(OBJ): zpaint.c $(OP) alloc.h estack.h gsmatrix.h gspaint.h state.h store.h
  382.  
  383. zpath.$(OBJ): zpath.c $(OP) gsmatrix.h gspath.h state.h store.h
  384.  
  385. zpath2.$(OBJ): zpath2.c $(OP) alloc.h estack.h gspath.h state.h store.h
  386.  
  387. ### Level 2 graphics operators
  388.  
  389. z2path.$(OBJ): z2path.c $(OP) state.h stream.h i2num.h
  390.  
  391. ###### Linking
  392.  
  393. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) iinit.$(OBJ) iname.$(OBJ) \
  394.  interp.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) stream.$(OBJ) \
  395.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) zfile.$(OBJ) \
  396.  zgeneric.$(OBJ) zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zrelbit.$(OBJ) \
  397.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  398.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zdevice.$(OBJ) zgstate.$(OBJ) \
  399.  zht.$(OBJ) zmatrix.$(OBJ) zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  400.  
  401. INT2=i2num.$(OBJ) \
  402.  z2bseq.$(OBJ) \
  403.  z2path.$(OBJ)
  404.  
  405. # ----------------------------- Main program ------------------------------ #
  406.  
  407. # Utilities shared between platforms
  408.  
  409. gsmain.$(OBJ): gsmain.c $(GX) \
  410.   gsmatrix.h gxdevice.h
  411.  
  412. # Library test program driver
  413.  
  414. gt.$(OBJ): gt.c $(GX) \
  415.   gsmatrix.h gsstate.h gscoord.h gspaint.h gspath.h gxdevice.h
  416.  
  417. # Interpreter main program
  418.  
  419. interp.$(OBJ): interp.c $(GH) \
  420.   errors.h name.h dict.h oper.h store.h sstorei.h stream.h
  421.     $(CCINT) interp.c
  422.  
  423. gs.$(OBJ): gs.c $(GH) alloc.h store.h stream.h $(MAKEFILE)
  424.     $(CCA) -DGS_LIB_DEFAULT=$(Q)$(GS_LIB_DEFAULT)$(Q) gs.c
  425. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  426. #    Distributed by Free Software Foundation, Inc.
  427. #
  428. # This file is part of Ghostscript.
  429. #
  430. # Ghostscript is distributed in the hope that it will be useful, but
  431. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  432. # to anyone for the consequences of using it or for whether it serves any
  433. # particular purpose or works at all, unless he says so in writing.  Refer
  434. # to the Ghostscript General Public License for full details.
  435. #
  436. # Everyone is granted permission to copy, modify and redistribute
  437. # Ghostscript, but only under the conditions described in the Ghostscript
  438. # General Public License.  A copy of this license is supposed to have been
  439. # given to you along with Ghostscript so you can know your rights and
  440. # responsibilities.  It should be in a file named COPYING.  Among other
  441. # things, the copyright notice and this notice must be preserved on all
  442. # copies.
  443.  
  444. # makefile for Ghostscript device drivers.
  445.  
  446. # -------------------------------- Catalog ------------------------------- #
  447.  
  448. # It is possible to build Ghostscript with an arbitrary collection of
  449. # device drivers, although many drivers are supported only on a subset
  450. # of the target platforms.  The currently available drivers are:
  451.  
  452. # Displays:
  453. #    bgi    Borland Graphics Interface   [MS-DOS only]
  454. #    ega    EGA display   [MS-DOS only]
  455. #    ega_bios  EGA display using BIOS calls (very slow)   [MS-DOS only]
  456. #    mdb10    EIZO MDB-10 display (1024 x 768)   [MS-DOS only]
  457. #    sonyfb    Sony Microsystems monochrome display   [Sony only]
  458. #    sunview  SunView window system   [SunOS only]
  459. #    vga    VGA display   [MS-DOS only]
  460. #    x11    X Windows version 11, release >=3   [Unix only]
  461. # (NOTE: no more than one MS-DOS display driver may be included in
  462. #   any build.)
  463. # Printers:
  464. #    bj10e    Canon BubbleJet BJ10e  [MS-DOS only]
  465. #    deskjet  H-P DeskJet   [MS-DOS & Unix]
  466. #    epson    Epson dot matrix printers   [MS-DOS only]
  467. #    laserjet  H-P LaserJet   [MS-DOS & Unix]
  468. #    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  469. # ###    paintjet  H-P PaintJet color printer [Unix, tested on SunOS only]
  470. # ###      (NOT INCLUDED IN THIS RELEASE)
  471.  
  472. # If you add drivers, it would be nice if you kept each list
  473. # in alphabetical order.
  474.  
  475. # Each platform-specific makefile should contain a pair of lines of the form
  476. #    DEVICES=<dev1> ... <devn>
  477. #    DEVICE_OBJS=$(<dev1>_) ... $(<devn>_)
  478. # where dev1 ... devn are the devices to be included in the build.
  479. # dev1 will be used as the default device.  Don't forget the _s!
  480. # On MS-DOS platforms, the first of these lines must appear *before*,
  481. # and the second *after*, the lines
  482. #    (!)include gdevs.mak
  483. #    (!)include ghost.mak
  484. # in the makefile.  On Unix systems, the two device definition lines
  485. # may appear anywhere in the makefile.
  486. #
  487. # The executable must be linked with all the files named in DEVICE_OBJS.
  488. # On MS-DOS platforms, this is done by constructing a file called gdevs.tl,
  489. # to get around the limit on the length of a DOS command line.
  490.  
  491. # ---------------------------- End of catalog ---------------------------- #
  492.  
  493. # If you want to add a new device driver, the examples below should be
  494. # enough of a guide to the correct form for the makefile rules.
  495.  
  496. # All device drivers depend on the following
  497. # (note that we include some indirect dependencies explicitly):
  498.  
  499. GDEV=$(AK) gs.h gx.h gsmatrix.h gxbitmap.h gxdevice.h
  500.  
  501. ###### ------------------- MS-DOS display devices ------------------- ######
  502.  
  503. GDEVPCFB=gdevpcfb.h $(GDEV)
  504.  
  505. gdevegaa.$(OBJ): gdevegaa.asm
  506.  
  507. ### -------------------------- The EGA device -------------------------- ###
  508.  
  509. ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
  510. ega.exe: $(ETEST) libc$(MM).tl
  511.     tlink /m /l $(LIBDIR)\c0$(MM) @ega.tl @libc$(MM).tl
  512.  
  513. ega.$(OBJ): ega.c $(GDEV)
  514.  
  515. ega_=gdevega.$(OBJ) gdevegaa.$(OBJ)
  516. ega.dev: $(ega_)
  517.     .$(DS)gssetdev ega.dev $(ega_)
  518.  
  519. gdevega.$(OBJ): gdevpcfb.c gdevega.h $(GDEVPCFB)
  520.     cp gdevega.h gdevxxfb.h
  521.     $(CCNA) gdevpcfb
  522.     rm gdevxxfb.h
  523.     cp gdevpcfb.obj gdevega.obj
  524.  
  525. ega_bios_=gdevegab.$(OBJ) gdevegaa.$(OBJ)
  526. ega_bios.dev: $(ega_bios_)
  527.     .$(DS)gssetdev ega_bios.dev $(ega_bios_)
  528.  
  529. gdevegab.$(OBJ): gdevegab.c $(GDEVPCFB)
  530.     $(CCNA) $(D_EGA) $*
  531.  
  532. ### -------------------------- The VGA device -------------------------- ###
  533.  
  534. vga_=gdevvga.$(OBJ) gdevegaa.$(OBJ)
  535. vga.dev: $(vga_)
  536.     .$(DS)gssetdev vga.dev $(vga_)
  537.  
  538. gdevvga.$(OBJ): gdevpcfb.c gdevvga.h $(GDEVPCFB)
  539.     cp gdevvga.h gdevxxfb.h
  540.     $(CCNA) gdevpcfb
  541.     rm gdevxxfb.h
  542.     cp gdevpcfb.obj gdevvga.obj
  543.  
  544. ### ---------------------- The EIZO MDB-10 device ---------------------- ###
  545.  
  546. mdb10_=gdevmd10.$(OBJ) gdevegaa.$(OBJ)
  547. mdb10.dev: $(mdb10_)
  548.     .$(DS)gssetdev mdb10.dev $(mdb10_)
  549.  
  550. gdevmd10.$(OBJ): gdevpcfb.c gdevmd10.h $(GDEVPCFB)
  551.     cp gdevmd10.h gdevxxfb.h
  552.     $(CCNA) gdevpcfb
  553.     rm gdevxxfb.h
  554.     cp gdevpcfb.obj gdevmd10.obj
  555.  
  556. ###### --------- The BGI (Borland Graphics Interface) device -------- ######
  557.  
  558. bgi_=gdevbgi.$(OBJ) egavga.$(OBJ)
  559. bgi.dev: $(bgi_)
  560.     .$(DS)gssetdev bgi.dev $(bgi_)
  561.  
  562. gdevbgi.$(OBJ): gdevbgi.c $(GDEV)
  563.     $(CCNA) $*
  564.  
  565. egavga.$(OBJ): $(COMPDIR)\egavga.bgi
  566.     bgiobj egavga
  567.  
  568. ###### --------------- Memory-buffered printer devices --------------- ######
  569.  
  570. gvirtmem.$(OBJ): gvirtmem.c gvirtmem.h
  571.  
  572. # Virtual memory test program -- requires VMDEBUG
  573.  
  574. gvm.exe: gvirtmem.$(OBJ) trace.$(OBJ)
  575.     tlink /m /l $(LIBDIR)\c0$(MM) gvirtmem trace,gvm,gvm,$(LIBDIR)\c$(MM)
  576.  
  577. PDEVH=$(GDEV) gxdevmem.h gvirtmem.h gdevprn.h
  578.  
  579. # We use CCNA only because the MS-DOS version of the driver
  580. # refers to stdprn, which is non-ANSI.
  581. gdevprn.$(OBJ): gdevprn.c $(PDEVH)
  582.     $(CCNA) $*
  583.  
  584. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  585.  
  586. bj10e_=gdevbj10.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  587. bj10e.dev: $(bj10e_)
  588.     .$(DS)gssetdev bj10e.dev $(bj10e_)
  589.  
  590. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  591.  
  592. ### ------------------ The H-P DeskJet printer device ------------------ ###
  593.  
  594. # Note that this shares code with the LaserJet device (below).
  595.  
  596. deskjet_=gdevdjet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  597. deskjet.dev: $(deskjet_)
  598.     .$(DS)gssetdev deskjet.dev $(deskjet_)
  599.  
  600. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH)
  601.     $(CCA) -DLASER=0 gdevdjet.c
  602.  
  603. ### ----------------- The generic Epson printer device ----------------- ###
  604.  
  605. epson_=gdevepsn.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  606. epson.dev: $(epson_)
  607.     .$(DS)gssetdev epson.dev $(epson_)
  608.  
  609. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  610.  
  611. ### ------------------ The H-P LaserJet printer device ----------------- ###
  612.  
  613. # Note that this shares code with the DeskJet device (above).
  614.  
  615. laserjet_=gdevljet.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  616. laserjet.dev: $(laserjet_)
  617.     .$(DS)gssetdev laserjet.dev $(laserjet_)
  618.  
  619. gdevljet.$(OBJ): gdevdjet.c $(PDEVH)
  620.     cp gdevdjet.c gdevljet.c
  621.     $(CCA) -DLASER=1 gdevljet.c
  622.     rm gdevljet.c
  623.  
  624. ### ------------ The H-P PaintJet color printer device ----------------- ###
  625. ### Note: this driver was contributed by users:                          ###
  626. ###       please contact marc@vlsi.polymtl.ca if you have questions.     ###
  627.  
  628. ### This driver was not ready to be included in release 2.0.
  629. ### Do not attempt to use it: the files are not included in the fileset.
  630.  
  631. PJETH=$(GDEV) gdevprn.h gdevpjet.h
  632.  
  633. paintjet_=gdevpjet.$(OBJ)
  634. paintjet.dev: $(paintjet_)
  635.     .$(DS)gssetdev paintjet.dev $(paintjet_)
  636.  
  637. gdevpjet.$(OBJ): gdevpjet.c $(PJETH)
  638.  
  639. ###### ------------------ Sony frame buffer device ----------------- ######
  640.  
  641. sonyfb_=gdevsnfb.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  642. sonyfb.dev: $(sonyfb_)
  643.     .$(DS)gssetdev sonyfb.dev $(sonyfb_)
  644.  
  645. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  646.     $(CCA) gdevsnfb.c
  647.  
  648. ###### ----------------- Sony NWP533 printer device ----------------- ######
  649.  
  650. nwp533_=gdevn533.$(OBJ) gvirtmem.$(OBJ) gdevprn.$(OBJ)
  651. nwp533.dev: $(nwp533_)
  652.     .$(DS)gssetdev nwp533.dev $(nwp533_)
  653.  
  654. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  655.     $(CCA) gdevn533.c
  656.  
  657. ###### --------------------- The SunView device --------------------- ######
  658.  
  659. sunview_=gdevsun.$(OBJ)
  660. sunview.dev: $(sunview_)
  661.     .$(DS)gssetdev sunview.dev $(sunview_)
  662.  
  663. gdevsun.$(OBJ): gdevsun.c $(GDEV)
  664.  
  665. ###### ----------------------- The X11 device ----------------------- ######
  666.  
  667. x11_=gdevx.$(OBJ)
  668. x11.dev: $(x11_)
  669.     .$(DS)gssetdev x11.dev $(x11_)
  670.  
  671. ### Note: if the X11 client header libraries are not on /usr/include/X11,
  672. ### you may have to change the compilation line below to add a -I switch.
  673. ### For example, if the header files are in /usr/local/X/include/X11,
  674. ### you must add the switch -I/usr/local/X/include.
  675. gdevx.$(OBJ): gdevx.c $(GDEV) gdevx.h
  676.     $(CCA) -I/usr/local/X/include gdevx.c
  677. #    Copyright (C) 1990 Aladdin Enterprises.  All rights reserved.
  678. #    Distributed by Free Software Foundation, Inc.
  679. #
  680. # This file is part of Ghostscript.
  681. #
  682. # Ghostscript is distributed in the hope that it will be useful, but
  683. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  684. # to anyone for the consequences of using it or for whether it serves any
  685. # particular purpose or works at all, unless he says so in writing.  Refer
  686. # to the Ghostscript General Public License for full details.
  687. #
  688. # Everyone is granted permission to copy, modify and redistribute
  689. # Ghostscript, but only under the conditions described in the Ghostscript
  690. # General Public License.  A copy of this license is supposed to have been
  691. # given to you along with Ghostscript so you can know your rights and
  692. # responsibilities.  It should be in a file named COPYING.  Among other
  693. # things, the copyright notice and this notice must be preserved on all
  694. # copies.
  695.  
  696. # Partial makefile for Ghostscript, common to all Unix configurations.
  697.  
  698. # This is the last part of the makefile for Unix configurations.
  699. # Since Unix make doesn't have an 'include' facility, we concatenate
  700. # the various parts of the makefile together by brute force (in tar_gs).
  701.  
  702. # -------------------------------- Library -------------------------------- #
  703.  
  704. ## The Unix platform
  705.  
  706. PLATUNIX=gp_unix.$(OBJ)
  707.  
  708. gp_unix.$(OBJ): gp_unix.c
  709.  
  710. # -------------------------- Auxiliary programs --------------------------- #
  711.  
  712. ansi2knr$(XE):
  713.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  714.  
  715. genarch$(XE): genarch.c
  716.     $(CC) -o genarch$(XE) $(CFLAGS) genarch.c
  717.  
  718. # ----------------------------- Main program ------------------------------ #
  719.  
  720. # (Dummy) tracing package
  721.  
  722. utrace.$(OBJ): utrace.c cframe_.h
  723.  
  724. # Main program
  725.  
  726. ALLUNIX=gsmain.$(OBJ) utrace.$(OBJ) $(LIB) $(PLATUNIX) $(DEVICE_OBJS)
  727.  
  728. # Library test programs
  729.  
  730. GTUNIX=gt.$(OBJ) $(ALLUNIX)
  731. gt: $(GTUNIX)
  732.     $(CC) $(CFLAGS) $(LDPLAT) -o gt $(GTUNIX) $(EXTRALIBS) -lm
  733.  
  734. # Interpreter main program
  735.  
  736. GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  737. gs: $(GSUNIX) $(INT2)
  738.     $(CC) $(CFLAGS) $(LDPLAT) -o gs $(GSUNIX) $(EXTRALIBS) -lm
  739.